package top.tenebrous.termbor.rpc.serialization.codec;

import top.tenebrous.termbor.rpc.serialization.Serialization;
import top.tenebrous.termbor.rpc.serialization.jdk.JdkSerialization;
import top.tenebrous.termbor.rpc.spi.loader.ExtensionLoader;

/**
 * @program: termbor-rpc
 * @description:
 * @author: yazhang6
 * @create: 2024-05-21 10:36
 **/
public interface RpcCodec {

    default Serialization getSerialization(String serializationType) {
        return ExtensionLoader.getExtension(Serialization.class, serializationType);
    }

}
